# Makefile for boot

ASM = nasm
ASMFLAGS = -I include/

TARGET = boot.bin loader.bin

.PHONY : everything clean all

everything : $(TARGET)

clean :
	rm -f $(TARGET)
	
all : clean everything

boot.bin : boot.asm include/load_inc.asm include/fat12hdr.asm
	$(ASM) $(ASMFLAGS) -o $@ $<
	
loader.bin : loader.asm include/load_inc.asm include/fat12hdr.asm include/pm.inc
	$(ASM) $(ASMFLAGS) -o $@ $<